// 此文件 封装三个方法  专门用来操作token
const key = 'token'

// 设置token
export const setToken = token => {
  localStorage.setItem(key, token)
}

// 获取token
export const getToken = () => localStorage.getItem(key)

// 删除token
export const removeToken = () => {
  localStorage.removeItem(key)
}
